<h2>Danh sách nick yahoo</h2>
<?php echo$form->create('Delete', array('url' => '/messengers/multiDelete'))?>
	<?php $session->flash();?>
	<table class="widefat post fixed" cellspacing="0">
		<thead>
			<tr>
				<th scope="col" id="cb" class="manage-column column-cb check-column" style="width:15px"><input type="checkbox"></th>
				<th scope="col" id="author" class="manage-column column-author" style="width:200px"><?php echo$paginator->sort('Tên người dùng', 'name')?></th>
				<th scope="col" id="categories" class="manage-column column-categories" style="width:150px"><?php echo$paginator->sort('Nick yahoo', 'ym')?></th>
				<th scope="col" id="categories" class="manage-column column-categories" style="width:100px"><?php echo$paginator->sort('Điện thoại bàn', 'tel')?></th>
				<th scope="col" id="" class="manage-column column-categories" style="width:100px"><?php echo$paginator->sort('Di động', 'mobile')?></th>
				<th scope="col" id="tags" class="manage-column column-tags" style="width:80px"><?php echo$paginator->sort('Số máy lẻ', 'ext')?></th>
				<th scope="col" id="" class="manage-column column-tags" style="width:50px"><?php echo$paginator->sort('Email', 'email')?></th>
			</tr>
		</thead>
	
		<tfoot>
			<tr>
				<th scope="col" id="cb" class="manage-column column-cb check-column" style="width:15px"><input type="checkbox"></th>
				<th scope="col" id="author" class="manage-column column-author" style="width:200px"><?php echo$paginator->sort('Tên người dùng', 'name')?></th>
				<th scope="col" id="categories" class="manage-column column-categories" style="width:150px"><?php echo$paginator->sort('Nick yahoo', 'ym')?></th>
				<th scope="col" id="categories" class="manage-column column-categories" style="width:100px"><?php echo$paginator->sort('Điện thoại bàn', 'tel')?></th>
				<th scope="col" id="" class="manage-column column-categories" style="width:100px"><?php echo$paginator->sort('Di động', 'mobile')?></th>
				<th scope="col" id="tags" class="manage-column column-tags" style="width:80px"><?php echo$paginator->sort('Số máy lẻ', 'ext')?></th>
				<th scope="col" id="" class="manage-column column-tags" style="width:50px"><?php echo$paginator->sort('Email', 'email')?></th>
			</tr>
		</tfoot>
	
		<tbody>
			<?php 
			foreach ($messenger as $mess)
			{
			?>
			<tr id="post-<?php echo$mess['Messenger']['id']?>" class="alternate author-other status-publish iedit" valign="top">
				<th scope="row" class="check-column" style="width:3%">
					<?php echo$form->input("record.".$mess['Messenger']['id'], array('label' => '','type' => 'checkbox'))?>
				</th>
				<td class="post-title column-title">
					<strong><a class="row-title" href="#" title="Edit &quot;<?php echo$mess['Messenger']['name']?>"><?php echo$mess['Messenger']['name']?></a></strong>
					<div class="row-actions">
						<span class="view"><a href="<?php echo$html->url('/messengers/add')?>" title="Add" rel="permalink">Add</a> | </span>
						<span class="edit"><a href="<?php echo$html->url('/messengers/edit/'.$mess['Messenger']['id'])?>" title="Edit">Edit</a> | </span>
						<span class="delete"><a class="submitdelete" title="Delete" href="<?php echo$html->url('/messengers/delete/'.$mess['Messenger']['id'])?>" onclick="if ( confirm('You are about to delete \'<?php echo$mess['Messenger']['name']?>\'\n \'Cancel\' to stop, \'OK\' to delete.') ) { return true;}return false;">Delete</a></span>
					</div>
				</td>
				<td class="post-title column-title">
					<strong><?php echo$mess['Messenger']['ym']?></strong>
				</td>
				<td class="post-title column-title">
					<strong><?php echo$mess['Messenger']['tel']?></strong>
				</td>
				<td class="post-title column-title">
					<strong><?php echo$mess['Messenger']['mobile']?></strong>
				</td>
				<td class="post-title column-title">
					<strong><?php echo$mess['Messenger']['ext']?></strong>
				</td>
				<td class="post-title column-title">
					<strong><?php echo$mess['Messenger']['email']?></strong>
				</td>
			</tr>
			<?php 
			}
			?>
			
		</tbody>
	</table>
	
	<!-- bof tablenav -->
	<div class="tablenav">
		<div class="tablenav-pages">
			<span class="displaying-num"><?php echo $paginator->counter(array( 'format' => 'Display %start%-%end% of %count%')); ?></span>
			<?php
				echo $paginator->prev('«', array('class' => 'prev page-numbers'));
				echo ' '.$paginator->numbers(array('class' => 'page-numbers', 'separator' => ' ', 'modulus' => '5')).' ';
				echo $paginator->next('»', array('class' => 'next page-numbers'));
			?>
		</div>
		<div class="alignleft actions">
			<?php echo$form->submit('Delete', array('name' => 'doaction2', 'class' => 'button-secondary action', 'div' => false))?> 
			<br class="clear">
		</div>
		<br class="clear">
	</div>
	<!-- eof tablenav -->
	<?php echo$form->end()?>

<div id="ajax-response"></div>
<br class="clear">